package com.macro.mall.tiny.modules.oms.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 会员优惠码申请表
 * </p>
 *
 * @author tyrone
 * @since 2024-10-23
 */
@Getter
@Setter
@TableName("oms_promo_code_apply")
@ApiModel(value = "OmsPromoCodeApply对象", description = "会员优惠码申请表")
public class OmsPromoCodeApply implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("申请的微信用户openid")
    private String openId;

    @ApiModelProperty("申请时间（创建时间）")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("优惠码")
    private String promoCode;

    @ApiModelProperty("审核状态 0未审核 1审核通过 2审核不通过")
    private Integer assessStatus;

    @ApiModelProperty("审核人员的adminid")
    private Long assessAdminId;

    @ApiModelProperty("审核时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date assessTime;

    @TableField(exist = false)
    @ApiModelProperty("分页参数")
    private Integer pageNum = 0;

    @ApiModelProperty("分页参数")
    @TableField(exist = false)
    private Integer pageSize = 10;

    @ApiModelProperty("查询参数：创建时间起始时间")
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTimeStart;

    @ApiModelProperty("查询参数：创建时间结束时间")
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTimeEnd;

    @ApiModelProperty("查询参数：审核时间起始时间")
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date assessTimeStart;

    @ApiModelProperty("查询参数：审核时间结束时间")
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date assessTimeEnd;


    @ApiModelProperty("审核人员的用户名")
    @TableField(exist = false)
    private String assessAdminUsername;




}
